package day1;

public class SyncThenCheckNull {
	private static String LOCK;
	
	public void check(){
		synchronized (LOCK) {
			if(LOCK==null){
				LOCK = "LOCK";
			}
		}
	}
}
